package jdk8.lambda;

public class Cat extends Animal {

	public Cat() {
		//调用父类构造
		super("猫");
	}
	
	@Override
	public void eat() {
		System.out.printf("%s 喜欢吃鱼...\n",getName());
	}

}
